package org.gbis.openbus;

public class Station extends Item {

	public double getDist() {
		return dist;
	}

	public void setDist(int dist) {
		this.dist = dist;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	@Override
	public String toString() {
		String format = "Station{ id: %s, no: %s, name: %s, x: %f, y: %f, dist: %d }";
		return String.format(format, id, no, name, x, y, dist);
	}

	public Station() {
	}

	public Station( String id, String name, double x, double y) {
		super();
		this.id = id;
		this.name = name;
		this.x = x;
		this.y = y;
	}

	private String id = "";
	private String name = "";
	private String no = "";

	private double x = -1;
	private double y = -1;
	private int dist;

}
